import { AppSidebar } from "@/components/app-sidebar"
import { HistoryGallery } from "@/components/history-gallery"
import { SiteHeader } from "@/components/site-header"
import { SidebarInset, SidebarProvider } from "@/components/ui/sidebar"

export default function HistoryPage() {
  return (
    <SidebarProvider>
      <AppSidebar />
      <SidebarInset>
        <SiteHeader title="历史记录" />
        <div className="flex flex-1 flex-col p-4 md:p-6">
          <div className="flex flex-col gap-4">
            <h1 className="text-2xl font-bold tracking-tight">历史检测记录</h1>
            <p className="text-muted-foreground">查看您之前上传并检测过的所有照片。</p>
            <HistoryGallery />
          </div>
        </div>
      </SidebarInset>
    </SidebarProvider>
  )
}
